package tas.co.in.daoimpl.problemInfo;
import java.util.List;
import java.util.StringTokenizer;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import tas.co.in.dao.problemInfo.problemInfo;
import tas.co.in.domain.problemInfo.problemInfoBean;

public class problemInfoImpl extends SqlMapClientDaoSupport implements problemInfo
{
@SuppressWarnings("unchecked")
public List<problemInfoBean> getCustprblm()
{
	try 
	{
		return getSqlMapClient().queryForList("custpro.join");
	} catch (Exception e) 
	{
		System.out.println(e);
	}
	
	return null;
}
	public boolean setUpdate(StringTokenizer items)
	{
		problemInfoBean bean=new problemInfoBean();
		boolean bool = false;
		try 
		{
			while (items.hasMoreTokens()) 
			{
				bean.setCustid(items.nextToken());
				bean.setMobileno(items.nextToken());
				getSqlMapClient().update("custpro.uissue",bean);
				bool=true;
				
			}
			
		}
		catch (Exception e) 
		{
			System.out.println(e);
		}
		return bool;
	}

}
